/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

/**
 *
 * @author Reza Auadi Panah
 */
public class DrinkReady extends StateC {
    
    protected DrinkReady(){
        
        System.out.println("your Drink is Ready \nTYPE 'R' TO REMOVE DRINK ");
    }
    
    @Override
    protected void handle(String event, int data){
        if(event.equals("Remove") || event.equals("R") || event.equals("r")){ 
            System.out.println("Your Drink is removed ");
            changeState(new SelectDrink());
        }
        else{
            super.handle(event, data);            
           
        }
    }
    
    
}
